﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true"
    CodeBehind="ExpertApplyList.aspx.cs" Inherits="ZF.BLL.Admin.ExpertApplyList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <style>
 .f1{ color:#3366CC;}
 .f2{ color:#f00;}
 .f3{ color:#eee;}
 .f4{ color:#339933;}
 </style>
        <!--自定义条件 开始-->
    <div class="tabHeadMenu">
    
        <a href="<%=this.ListPage %>" class='<%=(Status==-100)?"action":"" %>'>所有记录</a> <a
            href="<%=this.ListPage %>?status=0" class='<%=(Status==0)?"action":"" %>'>未审核</a>
        <a href="<%=this.ListPage %>?status=-1" class='<%=(Status==-1)?"action":"" %>'>审核失败</a>
     
    </div>
    <!--自定义条件 结束-->
    <!--列表 开始-->
    <div class="tabContainer">
        <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
            <Columns>
                <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending" SortExpression="Apply.ExpertApplyId">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("Apply.ExpertApplyId")%>'></asp:Label>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField IsCheckField="true">
                </zf:TemplateField>
                <zf:TemplateField IsSerialNoField="true" Visible="false">
                </zf:TemplateField>
                <zf:TemplateField HeaderText="申请人帐号"  >
                    <ItemTemplate>
                         <%#Eval("Member.Account")%> 
                    </ItemTemplate>
                </zf:TemplateField>
                 <zf:TemplateField HeaderText="申请人简介"  >
                    <ItemTemplate>
                         <%#((string)Eval("Member.About")).MaxLength(20)%> 
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="申请理由"  >
                    <ItemTemplate>
                         <%# ((string)Eval("Apply.Content")).MaxLength(20)%> 
                    </ItemTemplate>
                </zf:TemplateField>
                 <zf:TemplateField HeaderText="专家类型"  >
                    <ItemTemplate>
                         <%#Eval("EType")%> 
                    </ItemTemplate>
                </zf:TemplateField>
                
                
                 <zf:TemplateField HeaderText="审核状态"  >
                    <ItemTemplate>
                     
                       <%# GetStatus((int)Eval("Apply.Status"))%> 
                    </ItemTemplate>
                </zf:TemplateField>
              
                 <zf:TemplateField HeaderText="申请时间"  >
                    <ItemTemplate>
                           <%#Eval("Apply.AddTime")%> 
                    </ItemTemplate>
                </zf:TemplateField>
                  
                <zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                    
                          <a href='<%=this.ManagePage %>?ot=Edit&id=<%# Eval("Apply.ExpertApplyId")%>'>
                                    详细</a> |
                        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%#Eval("Apply.ExpertApplyId") %>'
                            OnClientClick="return confirm('是否确定要删除此记录');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>
            </Columns>
        </zf:GridView>
    </div>
    <!--列表 结束-->
    <div class="mt5_ fc_">
    </div>
    <!--自定义按钮 开始-->
    <div class="btnContainer mt10_">
        <span class="fl_ mr10_">
            <input type="checkbox" class="checkAll" bind=".tab" />选中本页显示的所有记录</span>
       <%-- <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='Del'
            OnClientClick="return confirm('是否确定要删除选中记录');">删除选中的<%=CTitle %></zf:LinkButton>--%>
          <zf:LinkButton ID="LinkButton2" runat="server" OnClick="Oper" CommandArgument='Success'
            OnClientClick="return confirm('是否执行该操作');">选中的<%=CTitle %>审核成功</zf:LinkButton>
           <zf:LinkButton ID="LinkButton3" runat="server" OnClick="Oper" CommandArgument='Fail'
            OnClientClick="return confirm('是否执行该操作');">选中的<%=CTitle %>审核失败</zf:LinkButton> 
               
         
    </div>
    <!--自定义按钮 结束-->
    <div class="fc_ mt10_">
    </div>
    <!--搜索 开始-->
    <%--<div class="searchContainer">
        <table>
            <tr>
                <td class="l">
                    搜索选项:
                </td>
                <td class="m">
                    <div class="c">
                        <span class="t">物业名称:</span><span class="c">
                            <zf:TextBox runat="server" class="stxt" ID="tbTitle"></zf:TextBox></span>
                        <span class="t">物业类型:</span><span class="c">
                            <zf:DropDownList runat="server" ID="ddlHouseType" class="stxt" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1" Text="未选择"></asp:ListItem>
                            </zf:DropDownList>
                        </span><span class="t">&nbsp;&nbsp;发布时间(小于):</span><span class="c">
                            <zf:TextBox runat="server" class="dttxt" ID="tbEndTime1" onfocus="calendar();"></zf:TextBox></span>
                        <br />
                        <span class="t">客户编号:</span><span class="c">
                            <zf:TextBox runat="server" class="stxt" ID="tbHouseNo"></zf:TextBox></span>
                        <span class="t">房源状态:</span><span class="c">
                            <zf:DropDownList runat="server" ID="ddlHouseStatus" class="stxt" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1" Text="未选择"></asp:ListItem>
                                 <asp:ListItem Value="1" Text="发布中"></asp:ListItem>
                                  <asp:ListItem Value="2" Text="停止发布"></asp:ListItem>
                                   <asp:ListItem Value="3" Text="已交易"></asp:ListItem>
                            </zf:DropDownList>
                        </span><span class="t">&nbsp;&nbsp;发布时间(大于):</span><span class="c">
                            <zf:TextBox runat="server" class="dttxt" ID="tbEndTime2" onfocus="calendar();"></zf:TextBox></span>
                        <zf:Button runat="server" ID="Button2" Text="搜 索" OnClick="Search" class="linkbtn" />
                        <zf:Button runat="server" ID="Button1" Text="全 部" OnClick="AllList" class="linkbtn" />
                    </div>
                </td>
            </tr>
        </table>
    </div>--%>
    <!--搜索 结束-->
</asp:Content>
